const Koa =require('koa');
const bodyParser = require('koa-bodyparser')

const router = require('./config/router')();
const path = require('path');

const app = new Koa();

// app.use(bodyParser())
app.use(router.routes()).use(router.allowedMethods());
app.listen(8080);
console.log('app started at port 8080...');
